package org.darcy.dao.business;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.darcy.entity.business.BusinessContract;
import org.darcy.framework.generic.GenericDao;
import org.darcy.vo.project.ProjectList;
import org.darcy.vo.project.ProjectSummary;

import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * BusinessContract dao层
 */
public interface BusinessContractMapper extends GenericDao<BusinessContract> {

	/**
	 * 分页查询合同
	 */
	IPage<BusinessContract> getPage(IPage<BusinessContract> page, @Param("param") ProjectList param);

	/**
	 * 获取项目统计数据：进行中项目
	 * 
	 */
	List<BusinessContract> count1(ProjectSummary param);

	/**
	 * 获取项目统计数据：新项目
	 * 
	 */
	List<BusinessContract> count2(ProjectSummary param);

	/**
	 * 获取项目统计数据：已完成项目
	 * 
	 */
	List<BusinessContract> count3(ProjectSummary param);
	
	/**
	 * 获取项目统计数据：续签率
	 * 
	 */
	int count4(ProjectSummary param);

}
